//
//  ATVBrowserView.m
//  FlashController
//
//  Created by Martin Schiøth Dyrby on 11/15/11.
//  Copyright 2011 Molamil. All rights reserved.
//

#import "ATVBrowserView.h"

@implementation ATVBrowserView

- (id)init
{
    self = [super init];
    if (self) {
        // Initialization code here.
    }
    
    return self;
}

- (void) updateBrowserView:(ATVUrl*) url
{
    
    NSURLRequest* request = [NSURLRequest requestWithURL: [NSURL URLWithString: [url url]]];
    [[NSURLCache sharedURLCache] removeAllCachedResponses];
//    [[NSURLCache sharedURLCache] removeCachedResponseForRequest:request];
	[[self mainFrame] loadRequest: request];
    //[request release];
    
    [[NSNotificationCenter defaultCenter] postNotificationName:@"loadNewURL" object:nil];
    [[NSNotificationCenter defaultCenter] postNotificationName:@"clearWindow" object:nil];
    
}

@end
